const p1 = Promise.reject(1);
const p2 = Promise.resolve(2);
const p3 = new Promise((reject) => setTimeout(reject, 100, 3));

Promise.all([p1, p2, p3])
  .then(values => console.log(values)) // [1, 2, 3]
  .catch(error => console.error(error));